package com.heima.wemedia.controller.v1;

import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heima.model.admin.dtos.AuthDto;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import com.heima.wemedia.mapper.WmChannelMapper;
import com.heima.wemedia.service.WmChannelService;
import com.heima.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author Psycho
 * @create 2022-04-25-18:24
 */
@RestController
@RequestMapping("/user/api/v1/auth")
public class WmUserController {

    @Autowired
    private WmUserService wmUserService;

    @PostMapping("/list")
    public Page listUsers(@RequestBody AuthDto dto){
        return wmUserService.listUsers(dto);
    }

}
